package com.sc.nft.dto.wallet;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.sc.nft.enums.WalletChannelEnum;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;

@Data
public class DaoOpenWalletDTO {
    @ApiModelProperty("daoId")
    @NotNull(message = "daoId不能为空")
    private Long daoId;

    @ApiModelProperty("操作人Id")
    @NotNull(message = "操作人Id不能为空")
    private Long operatorId;

    @ApiModelProperty("开户绑定手机号")
    @NotBlank(message = "请填写开户绑定手机号")
    private String  regPhone;

    @ApiModelProperty("企业名称")
    @NotBlank(message = "请填写企业名称")
    private String  businessName;

    @ApiModelProperty("统一社会信用代码")
    @NotBlank(message = "请填写统一社会信用代码")
    private String  businessLicenseCode;

    @ApiModelProperty("证件有效期")
    @NotNull(message = "请填写证件有效期")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    private Date expDate;


    @ApiModelProperty("营业执照")
    @NotBlank(message = "请上传营业执照")
    private String  businessLicenseImage;


    @ApiModelProperty("企业地址")
    @NotBlank(message = "请填写企业地址")
    private String  address;

    @ApiModelProperty("注册邮箱")
    @NotBlank(message = "请填写注册邮箱")
    private String  regEmail;

    @ApiModelProperty("密码")
    @NotBlank(message = "请输入密码")
    private String  password;

    @ApiModelProperty("密码随机因子")
    @NotBlank(message = "密码随机因子不能为空")
    private String  randomKey;

    @ApiModelProperty("开户银行")
    @NotNull(message = "银行账户信息不能为空")
    private DaoAccountDTO accountDTO;
    @ApiModelProperty("法人信息")
    @NotNull(message = "法人信息不能为空")
    private DaoLegalPersonDTO legalPersonDTO;

    @ApiModelProperty("联系人姓名")
    @NotBlank(message = "请输入联系人姓名")
    private String contactsName;

    @ApiModelProperty("联系人手机号")
    @NotBlank(message = "请输入联系人手机号")
    private String contactsPhone;

}
